import request from "@/utils/request";

export const getOrders = (params) => {
  return request({
    method: "get",
    url: "orders",
    params,
  });
};

// 获取订单数据
export const getOrdersDetail = (id) => {
  return request({
    method: "get",
    url: "orders/" + id,
  });
};

// 提交订单数据
export const editOrderDetail = (id, data) => {
  return request({
    method: "put",
    url: "orders/" + id,
    data,
  });
};
// 查看物流信息
export const getExpressInfo = (id) => {
  return request({
    method: "get",
    url: "kuaidi/" + id,
  });
};
